//
//  OPHRequest.m
//  WeChatTool
//
//  Created by TerryChe on 2016/11/30.
//  Copyright © 2016年 TerryChe. All rights reserved.
//

#import "OPHRequest.h"

@implementation OPHRequest

+(instancetype)jsonReqeust:(NSString*)url type:(OPHRequestType)type{
    return [OPHRequest jsonReqeust:url type:type params:nil timeout:30];
}

+(instancetype)jsonReqeust:(NSString *)url type:(OPHRequestType)type params:(NSDictionary*)params{
    return [OPHRequest jsonReqeust:url type:type params:params timeout:30];
}

+(instancetype)jsonReqeust:(NSString *)url type:(OPHRequestType)type params:(NSDictionary *)params timeout:(NSTimeInterval)timeout{
    NSLog(@"%@", url);
    OPHRequest *ophRequest = [[OPHRequest alloc] init];
    ophRequest.url = url;
    ophRequest.type = type;
    ophRequest.timeout = timeout;
    ophRequest.params = params;
    return ophRequest;
}

@end
